From b2dfd7eef4a3e892b3eeb6822f2e472b3be03267 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 22 Dec 2022 13:39:06 -0800 Subject: fix avatars --- src/routes/(app)/[username]/dashboard/+page.svelte | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/routes/(app)/[username]/dashboard') diff --git a/src/routes/(app)/[username]/dashboard/+page.svelte b/src/routes/(app)/[username]/dashboard/+page.svelte index 0b49a870..9c321472 100644 --- a/src/routes/(app)/[username]/dashboard/+page.svelte +++ b/src/routes/(app)/[username]/dashboard/+page.svelte @@ -6,6 +6,8 @@ import { rate, password, selectedRate } from '$lib/store'; import { goto } from '$app/navigation'; import { t } from '$lib/translations'; + import { events } from '$lib/store'; + import { Feed } from '$comp'; export let data; $: ({ invoices, requests } = data); @@ -55,6 +57,10 @@ $: btcPrice = f($selectedRate, user.currency); $: accountBalanceBtc = user.account.balance / sats; + + $: sorted = Object.values($events) + .filter((ev) => ev?.pubkey) + .sort((a, b) => b.seen - a.seen);
@@ -170,3 +176,9 @@
+ +
+
+ +
+
-- cgit v1.2.3